//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.ExamScheduleApmRegularDto;
//import java.io.Serializable;
//import com.rt.schedulebase.service.IExamScheduleApmRegularService;
//import com.rt.schedulebase.entity.ExamScheduleApmRegular;
//import com.rt.schedulebase.mapper.ExamScheduleApmRegularMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//public class ExamScheduleApmRegularServiceImpl extends ServiceImpl<ExamScheduleApmRegularMapper, ExamScheduleApmRegular> implements IExamScheduleApmRegularService
//{
//@Override
//    public boolean insertSelective(final ExamScheduleApmRegular examScheduleApmRegular) {
//        return this.retBool(Integer.valueOf(((ExamScheduleApmRegularMapper)this.baseMapper).insert(examScheduleApmRegular)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((ExamScheduleApmRegularMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final ExamScheduleApmRegular examScheduleApmRegular) {
//        return this.retBool(Integer.valueOf(((ExamScheduleApmRegularMapper)this.baseMapper).updateById(examScheduleApmRegular)));
//    }
//
//@Override
//    public ExamScheduleApmRegular selectByPrimaryKey(final String key) {
//        return (ExamScheduleApmRegular)((ExamScheduleApmRegularMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<ExamScheduleApmRegular> getList(final ExamScheduleApmRegularDto dto) {
//        final QueryWrapper<ExamScheduleApmRegular> qw = (QueryWrapper<ExamScheduleApmRegular>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dto.getApmCode());
//        map.put("REGULAR_ID", dto.getRegularId());
//        qw.allEq((Map)map, false);
//        final List<ExamScheduleApmRegular> list = (List<ExamScheduleApmRegular>)((ExamScheduleApmRegularMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<ExamScheduleApmRegular> getListAll() {
//        return (List<ExamScheduleApmRegular>)((ExamScheduleApmRegularMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final ExamScheduleApmRegular examScheduleApmRegular) {
//        final UpdateWrapper<ExamScheduleApmRegular> uw = (UpdateWrapper<ExamScheduleApmRegular>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", examScheduleApmRegular.getApmCode());
//        map.put("REGULAR_ID", examScheduleApmRegular.getRegularId());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamScheduleApmRegularMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final ExamScheduleApmRegular examScheduleApmRegular) {
//        final UpdateWrapper<ExamScheduleApmRegular> uw = (UpdateWrapper<ExamScheduleApmRegular>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", examScheduleApmRegular.getApmCode());
//        map.put("REGULAR_ID", examScheduleApmRegular.getRegularId());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamScheduleApmRegularMapper)this.baseMapper).update(examScheduleApmRegular, (Wrapper)uw)));
//    }
//
//@Override
//    public ExamScheduleApmRegular getInfo(final ExamScheduleApmRegularDto dto) {
//        final QueryWrapper<ExamScheduleApmRegular> qw = (QueryWrapper<ExamScheduleApmRegular>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dto.getApmCode());
//        map.put("REGULAR_ID", dto.getRegularId());
//        qw.allEq((Map)map, false);
//        return (ExamScheduleApmRegular)((ExamScheduleApmRegularMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
